package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-05-22 9:35
 */
public class Test04 {
    public static void main(String[] args) {
        double b=1.1;
        System.out.println(b);
        //小数的字面值常量默认是double
        float c=1.1F;
        System.out.println(10/3);
        System.out.println(10/3.0);
        //float比long的数范围大
        System.out.println(Long.MAX_VALUE);
        System.out.println(Float.MAX_VALUE);
        //小数计算的精度问题
        System.out.println(0.1+0.2);
        System.out.println(0.1*0.2);

    }
}
